0b3980ec029b6db57333c9271737d45c634276ae,olca-cloud/src/main/java/org/openlca/cloud/api/RepositoryClient.java,RepositoryClient,requestFetch,#,159
Before Change
}
public List<FetchRequestData> requestFetch() throws WebRequestException {
return executeLoggedIn(() -> {
FetchRequestInvocation invocation = new FetchRequestInvocation();
invocation.baseUrl = config.getBaseUrl();
invocation.sessionId = sessionId;
invocation.repositoryId = config.getRepositoryId();
invocation.lastCommitId = config.getLastCommitId();
return invocation.execute();
});
}
public List<FetchRequestData> sync(String untilCommitId) throws WebRequestException {
After Change
}
public List<FetchRequestData> requestFetch() throws WebRequestException {
List<FetchRequestData> result = executeLoggedIn(() -> {
FetchRequestInvocation invocation = new FetchRequestInvocation();
invocation.baseUrl = config.getBaseUrl();
invocation.sessionId = sessionId;
invocation.repositoryId = config.getRepositoryId();
invocation.lastCommitId = config.getLastCommitId();
return invocation.execute();
});
if (result == null)
return new ArrayList<>();
return result;
}
public List<FetchRequestData> sync(String untilCommitId) throws WebRequestException {